package com.webemail.sys.service;

import java.util.List;

import org.springframework.stereotype.Component;

import com.webemail.sys.model.SysMessageJunk;

@Component
public interface MessageJunkService {
	int insert(SysMessageJunk temp);

	int delete(long id, long userId);

	int update(SysMessageJunk temp);

	SysMessageJunk get(long id, long userId);

	List<SysMessageJunk> list(long mailId, long userId);

	int insert(List<SysMessageJunk> temp);

	List<SysMessageJunk> listByPage(long userId, long mailId, String colomn, String word, int offset, int limit,
		int... states);

	long count(long userId, long mailId, String colomn, String word, int... states);

	List<SysMessageJunk> listByPage(long userId, String colomn, String word, int offset, int limit,
		int... states);

	long count(long userId, String colomn, String word, int... states);

}
